package cn.fl.riskctrl.xjdb.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.cmm.base.framework.exception.BaseException;
import cn.cmm.base.framework.utils.BaseLogUtils;
import cn.fl.framework.base.context.CurrentThreadContext;
import cn.fl.riskctrl.xjdb.service.IXjdbModifyService;
import cn.fl.riskctrl.xjdb.transform.XjnpAccFundVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpAdmAwardVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpAdmPunmVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpAnnoInfoVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpApplyLVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpApplyVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpAssDispVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpAssuRepayVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpBkIllumVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpCompetenceVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpCvlJdgVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpDissentInfoVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpEndmInsDptVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpEndmInsPaymVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpForceExeVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpGuarVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpLoanCardVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpLoanVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpOverdueRecVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpProfessionVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpRepayRecVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpReportVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpResidenceVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpSalvationVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpScoreElemVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpSearRecVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpSpecTrdVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpStadLoanCardVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpTaxArrearVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpTelPaymVOTransform;
import cn.fl.riskctrl.xjdb.transform.XjnpVehicleVOTransform;
import cn.fl.riskctrl.xjdb.vo.XjnpAccFundVO;
import cn.fl.riskctrl.xjdb.vo.XjnpAdmAwardVO;
import cn.fl.riskctrl.xjdb.vo.XjnpAdmPunmVO;
import cn.fl.riskctrl.xjdb.vo.XjnpAnnoInfoVO;
import cn.fl.riskctrl.xjdb.vo.XjnpApplyLVO;
import cn.fl.riskctrl.xjdb.vo.XjnpApplyVO;
import cn.fl.riskctrl.xjdb.vo.XjnpAssDispVO;
import cn.fl.riskctrl.xjdb.vo.XjnpAssuRepayVO;
import cn.fl.riskctrl.xjdb.vo.XjnpBkIllumVO;
import cn.fl.riskctrl.xjdb.vo.XjnpCompetenceVO;
import cn.fl.riskctrl.xjdb.vo.XjnpCvlJdgVO;
import cn.fl.riskctrl.xjdb.vo.XjnpDissentInfoVO;
import cn.fl.riskctrl.xjdb.vo.XjnpEndmInsDptVO;
import cn.fl.riskctrl.xjdb.vo.XjnpEndmInsPaymVO;
import cn.fl.riskctrl.xjdb.vo.XjnpForceExeVO;
import cn.fl.riskctrl.xjdb.vo.XjnpGuarVO;
import cn.fl.riskctrl.xjdb.vo.XjnpLoanCardVO;
import cn.fl.riskctrl.xjdb.vo.XjnpLoanVO;
import cn.fl.riskctrl.xjdb.vo.XjnpOverdueRecVO;
import cn.fl.riskctrl.xjdb.vo.XjnpProfessionVO;
import cn.fl.riskctrl.xjdb.vo.XjnpRepayRecVO;
import cn.fl.riskctrl.xjdb.vo.XjnpReportVO;
import cn.fl.riskctrl.xjdb.vo.XjnpResidenceVO;
import cn.fl.riskctrl.xjdb.vo.XjnpSalvationVO;
import cn.fl.riskctrl.xjdb.vo.XjnpScoreElemVO;
import cn.fl.riskctrl.xjdb.vo.XjnpSearRecVO;
import cn.fl.riskctrl.xjdb.vo.XjnpSpecTrdVO;
import cn.fl.riskctrl.xjdb.vo.XjnpStadLoanCardVO;
import cn.fl.riskctrl.xjdb.vo.XjnpTaxArrearVO;
import cn.fl.riskctrl.xjdb.vo.XjnpTelPaymVO;
import cn.fl.riskctrl.xjdb.vo.XjnpVehicleVO;
import fl.riskctrl.facade.xjdb.api.IXjdbModifyApiService;

@Service
public class XjdbModifyServiceImpl implements IXjdbModifyService {
	@Autowired
	private IXjdbModifyApiService xjdbModifyApiService;
	/**
	 * 日志
	 */
	private static final Logger logger = LoggerFactory.getLogger(IXjdbModifyService.class);

	@Override
	public Boolean modifyXjnpAccFund(XjnpAccFundVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpAccFund", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpAccFund(XjnpAccFundVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpAdmAward(XjnpAdmAwardVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpAdmAward", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpAdmAward(XjnpAdmAwardVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpAdmPunm(XjnpAdmPunmVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpAdmPunm", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpAdmPunm(XjnpAdmPunmVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpAnnoInfo(XjnpAnnoInfoVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpAnnoInfo", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpAnnoInfo(XjnpAnnoInfoVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpAssDisp(XjnpAssDispVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpAssDisp", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpAssDisp(XjnpAssDispVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpAssuRepay(XjnpAssuRepayVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpAssuRepay", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpAssuRepay(XjnpAssuRepayVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpBkIllum(XjnpBkIllumVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpBkIllum", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpBkIllum(XjnpBkIllumVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpCompetence(XjnpCompetenceVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpCompetence", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpCompetence(XjnpCompetenceVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpCvlJdg(XjnpCvlJdgVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpCvlJdg", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpCvlJdg(XjnpCvlJdgVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpDissentInfo(XjnpDissentInfoVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpDissentInfo", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpDissentInfo(XjnpDissentInfoVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpEndmInsDpt(XjnpEndmInsDptVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpEndmInsDpt", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpEndmInsDpt(XjnpEndmInsDptVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpEndmInsPaym(XjnpEndmInsPaymVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpEndmInsPaym", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpEndmInsPaym(XjnpEndmInsPaymVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpForceExe(XjnpForceExeVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpForceExe", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpForceExe(XjnpForceExeVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpGuar(XjnpGuarVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpGuar", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpGuar(XjnpGuarVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpLoan(XjnpLoanVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpLoan", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpLoan(XjnpLoanVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpLoanCard(XjnpLoanCardVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpLoanCard", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpLoanCard(XjnpLoanCardVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpOverdueRec(XjnpOverdueRecVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpOverdueRec", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpOverdueRec(XjnpOverdueRecVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpProfession(XjnpProfessionVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpProfession", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpProfession(XjnpProfessionVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpRepayRec(XjnpRepayRecVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpRepayRec", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpRepayRec(XjnpRepayRecVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpReport(XjnpReportVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpReport", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpReport(XjnpReportVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpResidence(XjnpResidenceVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpResidence", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpResidence(XjnpResidenceVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpSalvation(XjnpSalvationVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpSalvation", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpSalvation(XjnpSalvationVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpScoreElem(XjnpScoreElemVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpScoreElem", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpScoreElem(XjnpScoreElemVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpSearRec(XjnpSearRecVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpSearRec", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpSearRec(XjnpSearRecVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpSpecTrd(XjnpSpecTrdVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpSpecTrd", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpSpecTrd(XjnpSpecTrdVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpStadLoanCard(XjnpStadLoanCardVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpStadLoanCard", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpStadLoanCard(XjnpStadLoanCardVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpTaxArrear(XjnpTaxArrearVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpTaxArrear", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpTaxArrear(XjnpTaxArrearVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpTelPaym(XjnpTelPaymVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpTelPaym", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpTelPaym(XjnpTelPaymVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpApply(XjnpApplyVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpApply", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpApply(XjnpApplyVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpApplyL(XjnpApplyLVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpApplyL", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpApplyL(XjnpApplyLVOTransform.toDTO(vo));
	}

	@Override
	public Boolean modifyXjnpVehicle(XjnpVehicleVO vo) throws BaseException {
		if (vo == null) {
			BaseLogUtils.info(logger, "modifyXjnpVehicle", "修改对象参数不能为空!", CurrentThreadContext.getCurrentUserName());
			return false;
		}
		return xjdbModifyApiService.modifyXjnpVehicle(XjnpVehicleVOTransform.toDTO(vo));
	}

}
